package com.jyu.util;

import java.awt.image.BufferedImage;

public class Cell {
    private int row;
    private int col;
    private BufferedImage bufferedImage;

    public void right(){
        col++;
    }public void left(){
        col--;
    }public void down(){
        row++;
    }


    public Cell() {
    }

    public Cell(int row, int col, BufferedImage bufferedImage) {
        this.row = row;
        this.col = col;
        this.bufferedImage = bufferedImage;
    }

    /**
     * 获取
     * @return row
     */
    public int getRow() {
        return row;
    }

    /**
     * 设置
     * @param row
     */
    public void setRow(int row) {
        this.row = row;
    }

    /**
     * 获取
     * @return col
     */
    public int getCol() {
        return col;
    }

    /**
     * 设置
     * @param col
     */
    public void setCol(int col) {
        this.col = col;
    }

    /**
     * 获取
     * @return bufferedImage
     */
    public BufferedImage getBufferedImage() {
        return bufferedImage;
    }

    /**
     * 设置
     * @param bufferedImage
     */
    public void setBufferedImage(BufferedImage bufferedImage) {
        this.bufferedImage = bufferedImage;
    }

    public String toString() {
        return "Cell{row = " + row + ", col = " + col + ", bufferedImage = " + bufferedImage + "}";
    }
}
